﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using WindowsFormsApplication5.settings;

namespace WindowsFormsApplication5.sheets
{
    public class Config_2620
    {
        public void create_configsheet(string savepath, string Hostname)
        {
            
            StreamWriter SW;
            SW = File.CreateText(savepath + "\\" + "gaga" + ".txt");
            
            // Routergrundkonfiguration
            SW.WriteLine("Host Name: " + Hostname);
            SW.WriteLine("Message of the Day: ");
            SW.WriteLine("Konsolenpasswort: ");

           // if (Datablock1.User_pw_enable == true)
                SW.WriteLine("User password enabled");
            //else
                SW.WriteLine("User password disabled");
            
            //Schnittstellenkonfiguration

            SW.WriteLine("Schnittstelle: ");
            SW.WriteLine("Beschreibung: ");
            SW.WriteLine("IP-Adresse: ");
            SW.WriteLine("Clockrate: ");

//TO DO: CHANGE user_pw_enable TO ENABLE_PORT
            //if (Datablock1.User_pw_enable == true)
                SW.WriteLine("port enabled");
            //else
                SW.WriteLine("port disabled");

            //Statische Routerkonfiguration
            SW.WriteLine("Statische Route: ");
            SW.WriteLine("Default Route: ");

            //Dynamische Routerkonfiguration mit RIPv2
            SW.WriteLine("Protokollversion: ");
            SW.WriteLine("Direktverbundene Netzwerke: ");

//TO DO: CHANGE user_pw_enable TO RIPv2routingprotocol
            //if (Datablock1.User_pw_enable == true)
                SW.WriteLine("RIPv2routingprotocol enabled");
            //else
                SW.WriteLine("RIPv2routingprotocol disabled");

//TO DO: CHANGE user_pw_enable TO RIPv2autocomplete
            //if (Datablock1.User_pw_enable == true)
                SW.WriteLine("RIPv2autocomplete enabled");
            //else
                SW.WriteLine("RIPv2autocomplete disabled");

            //Dynamische Routerkonfiguration mit OSPF
            SW.WriteLine("OSPF-Authentifizierung: ");
            SW.WriteLine("Direktverbundene Netzwerke: ");

//TO DO: CHANGE user_pw_enable TO RIPv2routingprotocol
            //if (Datablock1.User_pw_enable == true)
                SW.WriteLine("OSPFroutingprotocol enabled");
            //else
                SW.WriteLine("OSPFroutingprotocol disabled");

            SW.Close();
            Console.WriteLine("File Created SucacessFully");
           
        }
    }
}

